﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace bankControl
{
    [ToolboxBitmap(@"D:\Student\UTPL\AspNetSecurity\bankControl\images\TextB.png")]
    public class LabledTextBox : TextBox
    {
        public string LabledText { get; set; }
        
        protected override void Render(HtmlTextWriter htmlwriter)
        {
            htmlwriter.Write(string.Format(@"<label for=""{0}"">{1}</label>", this.ClientID, LabledText));
            //<lable for="txtuser">Enter User Nane</label>
            base.Render(htmlwriter);
        }
    }
}
